package com.zhkj.txg.module.mine.vm

import android.app.Application
import androidx.lifecycle.MutableLiveData
import com.zhkj.lib.base.BaseViewModel
import com.zhkj.lib.http.BaseResponse
import com.zhkj.lib.http.HttpResponse
import com.zhkj.lib.http.ViewModelSubscribeListener
import com.zhkj.lib.utils.AccountManager
import com.zhkj.txg.module.mine.entity.DeleteArticleResponse
import com.zhkj.txg.module.mine.entity.PublishListResponse
import com.zhkj.txg.module.mine.model.MineManager

class FeedbackViewModel(application: Application) : BaseViewModel(application) {
    private val manager = MineManager()
    val feedbackLiveData = MutableLiveData<HttpResponse<BaseResponse>>()


    fun setFeedback(content: String, images: String?) {
        val listener = ViewModelSubscribeListener(feedbackLiveData)
        val deletePublishArticle = manager.setFeedback(content, images, listener)
        dispose.add(deletePublishArticle)
    }
}